package com.kky.pp.http

import com.custom.base.config.BaseConfig
import com.kky.pp.BuildConfig
import io.rong.imkit.SpName
import org.json.JSONObject

object CommonHttpResutHead {
    fun getHead(token:String?=null): JSONObject {

        val jsonObject = JSONObject()
        jsonObject.put("applicationID", BuildConfig.APPLICATION_ID)
        jsonObject.put("timestamp", System.currentTimeMillis())
        jsonObject.put("appsFlyerUID", "")
        jsonObject.put("channel", "l1")
        jsonObject.put("appCode", "pp")
        jsonObject.put("appVersion", BuildConfig.VERSION_CODE)
        jsonObject.put("token", token?:BaseConfig.getInstance.getString(SpName.token, ""))
        jsonObject.put("appVersionName", BuildConfig.VERSION_NAME)
        jsonObject.put("appSource", "1")
        return jsonObject
    }
}